﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DailyPhoto.Common.Services;
using DailyPhoto.Common;
using System.ServiceModel;
using System.Reflection;
using System.IO;

namespace DailyPhoto.Web.Controllers
{
    public class DailyPhotoController : Controller
    {
        public ActionResult Generate(string token)
        {
            var realToken =(string)Application.Config.webToken;

            if (realToken != token)
            {
                return View(false);
            }

            DailyPhotoQueue.Enqueue(new DailyPhotoRequest());

            return View(true);
             
        }
    }
}
